package com.hui.service;

import com.github.pagehelper.PageInfo;
import com.hui.dto.PageDTO;
import com.hui.dto.SchoolInsertDTO;
import com.hui.dto.SchoolPageDTO;
import com.hui.dto.SchoolUpdateDTO;
import com.hui.entity.School;
import com.hui.excel.SchoolExcel;
import com.hui.exception.VersionException;
import com.hui.vo.SchoolVO;
import org.springframework.cache.annotation.CacheEvict;
import org.springframework.cache.annotation.Cacheable;
import org.springframework.retry.annotation.Retryable;

import java.util.List;

public interface SchoolService {
    int insert(SchoolInsertDTO dto);

    School select(Long id);

    List<SchoolVO> list();

    PageInfo<School> page(SchoolPageDTO dto);

    int update(SchoolUpdateDTO dto);

    int delete(Long id);

    int deleteBatch(List<Long> ids);

    List<SchoolExcel> getExcelData();
}
